 ;** Analyzed by http://lhammonds.game-host.org/obmm/tools_obmm_analyzer.asp **
If VersionLessThan 0.9.21
   Message "This mod must be installed by OBMM version 0.9.21 or later to prevent script errors."
   FatalError
EndIf

;** Requirement Check for Oblivion 1.2.416 or higher **
IfNot OblivionNewerThan 1.2.415.0
  Message "This mod requires Oblivion 1.2.416 or higher. Please visit http://www.elderscrolls.com/downloads/updates_patches.htm for more information and the download." "WARNING - OLD OBLIVION VERSION"
  FatalError
EndIf


IfNot ScriptExtenderPresent
  Message "This mod requires Oblivion Script Extender. If you have OBSE, make sure you installed all .dll files and the OBSE loader.exe file in the same directory as your Oblivion.exe file." "WARNING - MISSING OBSE"
  FatalError
EndIf


IfNot ScriptExtenderNewerThan 0.0.14.0
  Message "This mod requires OBSE v0015 (or later). Please visit http://obse.silverlock.org/ for more information and the download." "WARNING - OLD OBSE VERSION"
  FatalError
EndIf


If DialogYesNo "This mod needs to detect when you press the Activate key. For keyboard keys and standard mouse buttons (left, middle, right) it works great. For any other mouse button it requires a bit of a hack - you'll see some flashes when you activate a lock that you can pick and need to activate the support mod 'P1DkeyExtraMouseButton.esp'.%NewLine%%NewLine%Do you want to activate the support mod?"
Else
   UncheckESP "P1DkeyExtraMouseButton.esp"
EndIf


SetDeactivationWarning "P1DkeyExtraMouseButton.esp" "Allow"